import request from '@/utils/request'

const uploadApi = {
  upload_image: '/frontend/uploadFile/uploadFile',
  register_upload: '/frontend/uploadFile/touristUploadFile'
}

export function uploadImages (parameter) {
  return request({
    url: uploadApi.upload_image,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function registerUpload (parameter) {
  return request({
    url: uploadApi.register_upload,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
